Pokerface.Component = $.jClass({
    _defaultLanguage: 'en',
    
   _showError: function(errMsg) {
       // @TODO add language detecting
       var lang = this._defaultLanguage;
       if (typeof Pokerface.Texts[lang][errMsg] !== 'undefined') {
           errMsg = Pokerface.Texts[lang][errMsg];
       }
       $('#error_box').text(errMsg).show(300, function(){
           ;
       });
       $('body').live('click', function(){
           $('#error_box').hide(200);
       });
       return false;
   },

   init: function(){
       ;
   },

   start: function(){
       ; // should be overriden
   },

   getName: function(){
       return 'base'; // should be overriden
   }
});
